{% load filters %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> new document </title>
  <meta name="generator" content="editplus" />
  <meta name="author" content="" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
<script type="text/javascript" src="{{ MEDIA_URL }}/js/jquery.js"></script>
  <script type="text/javascript">
<!--
    function del_comment(commnet_key){
        if(confirm("确认删除吗？")){
            $.post('/admin/del_comment/', {'commnet_key': commnet_key}, function(){
                location.reload()
            });
        }
    }
//-->
</script>

 </head>

 <body>
  
<table border='1' width='100%'>
 <tr style="background:#CACACA">
        <td>昵称</td>
        <td>email</td>
        <td>link</td>
        <td>ip</td>
        <td>时间</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        
    </tr>
    {% for c in comment_list %}
    <tr style="background:#E8E8E8">
        <td>{{ c.nickname }}</td>
        <td>{{ c.email }}</td>
        <td><a href="{{ c.link|addslashes }}" target="_blank">{{ c.link }}</a></td>
        <td>{{ c.ip }}</td>
        <td>{{ c.add_time|format_time }}</td>
        <td><a href="javascript: del_comment('{{ c.key }}')">删除</a></td>
        <td><a href="{{ settings.BASE_URL }}/p/{{ c.post.key }}/#respond" target="_blank">查看</a></td>
    </tr>
    <tr>
        <td colspan="7">{{ c.content }}</td>
    </tr>
    {% endfor %}
</table>

 </body>
</html>
